#include <jni.h>
#include <string>
#include "ippusbxd.h"

extern "C" JNIEXPORT jstring JNICALL
Java_com_ehome_ippusb_NativeLib_stringFromJNI(
        JNIEnv *env,
        jobject /* this */) {

    char *argv[] = {"ippusbxd", "--only-port", "631", "--logging"};

    main(4, argv);

    std::string hello = "Hello from C++";
    return env->NewStringUTF(hello.c_str());
}